home *** CD-ROM | disk | FTP | other *** search
Wrap
<%'<? ' 'include ("../lib/config/global_config.php3"); 'include ("../lib/phpDB/connect.php3"); 'include ("../lib/phpDB/db.php3"); 'include ("../lib/helper.php3"); '$db=new db_connect; '$db->openDB($global_DBServer,$global_DBUser,$global_DBPassword); '$db->setDatabase($global_DBName); 'if ($DBRUN==1): ' /* ' ** Abfrage der Registrierungdaten ' */ ' if ($firstname=="") { $errormsg="Please enter your first name."; $error_first=1; } ' elseif ($lastname=="") { $errormsg="* Please enter your last name."; $error_last=1; } ' elseif ($email=="" || !ereg("^([a-zA-Z0-9\.\_\-]+)@([a-zA-Z0-9\.\-]+\.[A-Za-z][A-Za-z]+)$", $email)) { $errormsg = "* Please check your email adress.\n e.g: name@domain.com"; $error_email=1; } ' elseif (checkBirth($myDay,$myMonth,$myYear) != 1) { echo "<META HTTP-EQUIV='Refresh' CONTENT=0;URL=too_young.asp>"; } ' elseif ($street=="") { $errormsg="Please enter a street."; $error_street = 1; } ' elseif ($zip=="" || $city=="") { $errormsg="* Please fill out the zip code and City field."; $error_zip = 1; } ' elseif ($country==0) { $errormsg="Please choose a land."; } ' else { ' /* Birthdate zusammensetzen */ ' $birthdate = "$myYear-$myMonth-$myDay 00:00:00"; ' ' /* CreationDate */ ' $creationdate = date("Y-m-d H:i:s"); ' ' $dbquery=new db_query; ' $dbquery->db_connect($db); ' $insert = "INSERT INTO gewinnspiel_user (first, last, email, birthdate, phone, street, zip, city, country, brand, werbung, pictureid, creationdate, gender, smoker, domain) VALUES ('$firstname', '$lastname', '$email', '$birthdate', '$phone', '$street' ,'$zip', '$city', '$country', '$brand', '$werbung', '$bildid', '$creationdate', '$gender', '$smoker', '1')"; ' $dbquery->sendQuery($insert); ' echo "<META HTTP-EQUIV='Refresh' CONTENT=0;URL=bestaet_win.php3>"; ' } 'endif; ' '?> %> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN"> <html> <head> <meta http-equiv="content-type" content="text/html; charset=ISO-8859-2"> <title><?echo$global_title?></title> <link rel="stylesheet" href="../main.css"> </head> <body> <img src="/cgi-bin/ivw/CP<? echo $PHP_SELF;?>" width=1 height=1><br> <img src="gfx/regist.gif" width=135 height=29 alt="" border="0"><br><br> <table width="370" border="0" cellspacing="0" cellpadding="0"> <tr><td colspan="2"><h1>Rules of participation:</h1> <span>Everyone has the right to participate in the draw. Void where prohibited or restricted by law or regulation. Employees of Reemtsma and their immediate family members, regardless of where they live, or persons who reside in the same household, whether related or not, are not eligible to play. In order to particepate you must be at least 18 years old. Each person can participate only once.<br><br> All entrants agree that their addresses will be stored in accordance with the data protection law. Winners will be selected by a random draw. The draw will be performed electronically through a randomizer program. Reemtsma reserves the right in its sole discretion to suspend or terminate the sweepstakes. </span><br><br> <a name="eingaben"><span><i>Fields marked with * are optional, all others have to be completed in order to be able to participate.</i></span></a><br> <h4><? if ($errormsg) { echo $errormsg; } ?></h4> </td> </tr> <form action="registrier_win.asp" method="GET" enctype="application/x-www-form-urlencoded" name="Register2Form"> <input type=hidden name="DBRUN" value="1"> <input type=hidden name="bildid" value="<? echo $bildid; ?>"> <input type=hidden name="lwort" value="<? echo $lwort; ?>"> <input type=hidden name="version" value="<? echo $version;?>"> <tr> <td><font>first name:</font></td> <td><input type="Text" name="firstname" size="15" maxlength="40" VALUE="<? echo $firstname;?>"></td> </tr> <tr> <td><font>last name:</font></td> <td><input type="Text" name="lastname" size="15" maxlength="40" VALUE="<? echo $lastname; ?>"></td> </tr> <tr> <td><font>email:</font></td> <td><input type="Text" name="email" size="15" maxlength="40" VALUE="<? echo $email; ?>"></td> </tr> <tr> <td><font>birth date:</font></td> <td><input type="Text" name="myDay" size="2" maxlength="2" value="<? echo $myDay; ?>"><input type="Text" name="myMonth" size="2" maxlength="2" value="<? echo $myMonth; ?>"><input type="Text" name="myYear" size="4" maxlength="4" value="<? echo $myYear; ?>"></td> </tr> <tr> <td><font>gender:</font></td> <td><input type="Radio" name="gender" value="female" checked> <font>female</font><input type="Radio" name="gender" value="male"> <font>male</font></td> </tr> <tr> <td><font>street:</font></td> <td><input type="Text" name="street" size="15" maxlength="40" value="<? echo $street; ?>"></td> </tr> <tr> <td><font>phone*:</font></td> <td ><input type="Text" name="phone" size="15" maxlength="40"></td> </tr> <tr> <td><font>zip / city:</font></td> <td><input type="Text" name="zip" size="5" maxlength="15" VALUE="<? echo $zip; ?>"><input type="Text" name="city" value="<? echo $city; ?>" size="10" maxlength="40"></td> </tr> <tr> <td><font>country:</font></td> <td><select name="country"> <option value=0>Please choose</option> <option value='1'>ANDORRA</option><option value='2'>AUSTRIA</option><option value='3'>BELGIUM</option><option value='4'>BOSNIA AND HERZEGOWINA</option><option value='5'>BULGARIA</option><option value='6'>CROATIA</option><option value='7'>CYPRUS</option><option value='8'>CZECH REPUBLIC</option><option value='9'>DENMARK</option><option value='10'>ESTONIA</option><option value='11'>FINLAND</option><option value='12'>FRANCE</option><option value='13'>GERMANY</option><option value='14'>GIBRALTAR</option><option value='15'>GREECE</option><option value='16'>GREENLAND</option><option value='17'>HUNGARY</option><option value='18'>ICELAND</option><option value='19'>IRELAND</option><option value='20'>ISRAEL</option><option value='21'>ITALY</option><option value='22'>LATVIA</option><option value='23'>LIECHTENSTEIN</option><option value='24'>LITHUANIA</option><option value='25'>LUXEMBOURG</option><option value='26'>MACEDONIA</option><option value='27'>MOLDOVA</option><option value='28'>MONACO</option><option value='29'>MONTSERRAT</option><option value='30'>NETHERLANDS</option><option value='31'>NORWAY</option><option value='46'>other</option><option value='99'>others</option><option value='32'>POLAND</option><option value='33'>PORTUGAL</option><option value='34'>ROMANIA</option><option value='35'>SAN MARINO</option><option value='36'>SLOVAKIA</option><option value='37'>SLOVENIA</option><option value='38'>SPAIN</option><option value='39'>SWEDEN</option><option value='40'>SWITZERLAND</option><option value='41'>TURKEY</option><option value='42'>UKRAINE</option><option value='43'>UNITED KINGDOM</option><option value='44'>VATICAN CITY STATE</option><option value='45'>YUGOSLAVIA</option> </select></td> </tr> <tr> <td valign="top"><font>Smoker/<br>Brand*:</font></td> <td><input type="Radio" name="smoker" value="1" checked> <font>Yes</font><input type="Radio" name="smoker" value="0"> <font>No</font></td> </tr> <tr> <td valign="top"><font>Brand (optional)</font></td> <td><input type="Text" name="brand" value="<? echo $brand; ?>" size="15" maxlength="40"></td> </tr> <tr> <td colspan=2 align="center"><img src="../gfx/blank.gif" width=1 height=40 alt="" border="0"><input type="Submit" name="submit" value="participate"> <input type="reset" name="reset" value="delete entrys"></td> </tr> <tr> <td colspan="3"><br><input type="Radio" name="werbung" value="1" checked> <font>I agree to allow R1 to save the information that I have entered, and to use it in the future to inform me of events or promotions and/or send me trial products.</font><br><br></td> </tr> <tr> <td colspan="3"><input type="Radio" name="werbung" value="0"> <font>I do not agree with the above! Ok, then please click on this field and your address will be deleted from R1<sup><span>®</span></sup>'s files. </font></td> </tr> </form> </table> <br> </body> </html>